package com.smartcar.driver.feign;

import com.smartcar.common.domain.request.OrderRequest;
import com.smartcar.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "smartcar-order")
public interface OrderFeign {

    //TODO 司机添加订单
    @PostMapping("/updateOrderByDriver")
    public Result updateOrderByDriver(@RequestBody OrderRequest orderRequest);
}
